import Vue from "vue";
import Router from "vue-router";
import {routers} from "./router";
// import store from "../store";
// import {indexPage, loginPage} from "../config/config";
// import {Message} from 'view-design';

Vue.use(Router);

export default new Router({
  routes: routers
});

// 路由跳转前事件
export const beforeRouter = (to, from, next) => {
  next() // 默认跳转
}